//related to header2.ui
var root = ui("$");// 或者var root = ui("root");

var app = sm('do_App');
var page = sm("do_Page");
var nf = sm("do_Notification");
var baidulocation = sm("do_BaiduLocation");


 
var back_btn = ui("back_btn");
var do_Button_sign = ui("do_Button_sign");
do_Button_sign.on("touch", function() {
	//nf.alert("已经打卡成功");
	//do_BaiduLocation.startScan();
	

})

page.on('loaded',function(){
	nf.alert("niaho");
		baidulocation.start({model:'high',isLoop:'true'}); 
	})
page.on('back',function(){
	app.closePage();
})

/*****返回按钮*****/
back_btn.on("touch",function(){
	app.closePage();
})
